<?php
/**
* Admin for CMS settings
*
* @author Mario Schillermann <info@rockit-flash.com>
* @encoding UTF-8 äöüßÖÄÜ
* @copyright © 2011 Mario Schillermann (info@rockit-flash.com)
* @license GNU GPL v2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package Page
* @subpackage Index
* @link $HeadURL$
* @version SVN: $Id$
* @phpVersion >=5
* @todo
*/

class User_Form_List extends Zend_Form {
    /**
     * Index
     *
     * @return void $head
     */
    public function build($users)
    {


        $this->setName('user');

        $this->addElement(
            new Zend_Form_Element_Select(
                'userlist', array('label' => 'Benutzer','size' => '10')
            )
        );

        //$this->multiOptions->addMultiOption('1', 'value');

$this->userlist->addMultiOptions($users);
/*
        $this->addDisplayGroup(
            array(
                'multiOptions',
            ),
            'groups',
            array("legend" => ""));
*/
        return $this;

    }

}